import request from '@/utils/request'

import {
  queryAllCategoryList,
  queryCategoryAttributeBindApi,
  getAttrListByAttrCodeApi
} from '../apis'

export function queryCategoryAllList(query) {
  return request({
    url: queryAllCategoryList,
    method: 'get',
    params: query
  })
}

export function queryCategoryAttributeBindList(query) {
  return request({
    url: queryCategoryAttributeBindApi,
    method: 'get',
    params: query
  })
}

export function getAttrListByAttrCode(query) {
  return request({
    url: getAttrListByAttrCodeApi,
    method: 'get',
    params: query
  })
}
